package com.customer.crm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.customer.crm.system.mapper.SystemRoleMapper;
import com.customer.crm.system.pojo.SystemRole;
import com.customer.crm.system.service.SystemRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lyp
 * @create 2021/12/16
 */
@Service
public class SystemRoleServiceImpl extends ServiceImpl<SystemRoleMapper , SystemRole> implements SystemRoleService {
    @Override
    public List<SystemRole> findByUserId(String id) {
        return baseMapper.findByUserId(id);
    }

    @Override
    public List<SystemRole> page(Long page, Long rows) {
        return baseMapper.page(page, rows);
    }
}
